import Vue from 'vue'

import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import tag from '../zujian.vue'
import Yi1 from '../luyou/Yi1.vue'
import Er1 from '../luyou/Er1.vue'
import San1 from '../luyou/San1.vue'
import Tiao from '../Tiao/Tiao.vue'
import Not from '../Tiao/Not.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Yi1',

    component: Yi1
  },
  {
    path: '/Er',
    redirect: 'qqqq',
    name: 'Er1',
    component: Er1
  },
  {
    path: '/San/:id/:name',
    name: 'San1',
    component: San1

  },
  {
    path: '/Tiao/:aa',
    name: 'Tiao',
    component: Tiao

  },
  {
    path: '*',
    name: 'Not',
    component: Not

  }





  // {
  //   path: '/',
  //   name: 'Yi',
  //   component: Yi
  // },
  // {
  //   path: '/Er',
  //   name: 'Er',
  //   component: Er
  // },
  // {
  //   path: '/San',
  //   name: 'San',
  //   component: San
  // }
  // {
  //   path: '/',
  //   name: 'home',
  //   component: HomeView
  // },
  // {
  //   path: '/tag',
  //   name: 'tag',
  //   component: tag
  // },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = new VueRouter({
  linkActiveClass: 'aa',
  linkExactActiveClass: 'bb',
  mode: 'hash',
  routes
})

export default router
